import request from '@/utils/request'

// 查询评论回复列表
export function listProductReply(query) {
  return request({
    url: '/product/productReply/list',
    method: 'get',
    params: query
  })
}

// 查询评论回复详细
export function getProductReply(id) {
  return request({
    url: '/product/productReply/' + id,
    method: 'get'
  })
}

// 新增评论回复
export function addProductReply(data) {
  return request({
    url: '/product/productReply',
    method: 'post',
    data: data
  })
}

// 修改评论回复
export function updateProductReply(data) {
  return request({
    url: '/product/productReply',
    method: 'put',
    data: data
  })
}

// 删除评论回复
export function delProductReply(id) {
  return request({
    url: '/product/productReply/' + id,
    method: 'delete'
  })
}

// 查询商品评论列表
export function listProductComment() {
  return request({
    url: '/product/productComment/list',
    method: 'get',
  })
}

// 查询用户列表
export function listUser() {
  return request({
    url: '/system/user/list',
    method: 'get',
  })
}
